SRC := $(wildcard src/*.c)

LIBPATH = ./lib

CPPFLAGS += -I./inc
LDFLAGS += -L$(LIBPATH) -lx

main:main.c $(SRC)
	$(CC) $^ -o $@ $(LDFLAGS) $(CPPFLAGS) -Wl,-rpath=./lib


install:
	$(MAKE) -C lib/